b1878887fef6a77dc93b57c84cccd77a01e9db62,backend/webapp/src/test/java/org/bonitasoft/web/designer/controller/asset/AssetServiceTest.java,AssetServiceTest,should_return_error_when_uploadind_type_invalid,#,91

Before Change


        //We construct a mockfile (the first arg is the name of the property expected in the controller
        MockMultipartFile file = new MockMultipartFile("file", "myfile.js", "application/js", "".getBytes());

        assetService.upload(file, aPage().withId("page-id").build(), "INVALID");
    }

    @Test

After Change


        //We construct a mockfile (the first arg is the name of the property expected in the controller
        MockMultipartFile file = new MockMultipartFile("file", "myfile.js", "application/js", "".getBytes());

        assetService.upload(file, aPage().build(), "INVALID");
    }

    @Test